package org.example.util;

import java.io.File;

public interface CommonParam {
    int DEFAULT_PAGE = 1;
    int DEFAULT_LIMIT = 10;
    int DEFAULT_COMMENT_LIMIT = 2;
    String[] ES_SORT_DISCUSS_FIELD_NAMES = {"score","commentCount","createTime"};
    String[] ES_SEARCH_DISCUSS_BY_FIELD_NAMES = {"title","content"};
    /**
     * 前端分页当前页的前后差
     */
    int DEFAULT_INTERVAL_COUNT = 2;
    /**
     * 用户发布的帖子和评论 存储redis的key
     */
    String USER_PUBLISH_STATUS = "publish_user_";
    /**
     * 用户记录redis存储帖子发布的标识
     */
    String USER_PUBLISH_DISCUSS_SYMBOL = "discuss_publish_ids";
    /**
     * 用户记录redis存储评论发布的标识
     */
    String USER_PUBLISH_COMMENT_SYMBOL = "comment_publish_ids";
    /**
     * kafka的主题 帖子
     */
    String KAFKA_TOPIC_DISCUSS_POST = "discuss";
    /**
     * kafka的主题  点赞
     */
    String KAFKA_TOPIC_LIKE = "like";
    /**
     * kafka的主题  评论
     */
    String KAFKA_TOPIC_COMMENT = "comment";
    /**
     * kafka的主题  关注
     */
    String KAFKA_TOPIC_FOLLOW = "follow";
    /**
     * kafka的主题  帖子删除
     */
    String KAFKA_TOPIC_DELETE_DISCUSS = "deleteDiscuss";
    /**
     * kafka的主题  帖子加精和顶置
     */
    String KAFKA_TOPIC_UPDATE_DISCUSS = "updateDiscuss";
    String FOLLOW_STATUS = "follow";
    String FANS_STATUS = "fans";
    String CLASS_PATH = Thread.currentThread().getContextClassLoader().getResource("").getPath();
    String PROJECT_PATH = new File("").getAbsolutePath();
    String LOGIN_USER_SYMBOL = "loginUser";
    String TICKET_SYMBOL = "ticket";
    String VERIFY_CODE_SYMBOL = "verifyCode";
    String REGISTER_RESULT_SYMBOL = "message";
    String VERIFY_CODE_ERROR = "verifyCodeError";
    String USERNAME_ERROR = "usernameError";
    String PASSWORD_ERROR = "passwordError";
    String HEADER_IMG_UPLOAD_ERROR = "headerImgError";
    String USERNAME_OR_PASSWORD_ERROR = "usernameOrPasswordError";
    String EMAIL_ERROR = "emailError";
    String DEFAULT_ERROR = "defaultError";
    String DEFAULT_PASSWORD = "123456";
    String VERIFY_FINISH = "ok";
    String USER_ACTIVATION_FAILED = "activationFailed";
    long NORMAL_EXPIRED_TIME = 24*60*60*1000;
    long REMEMBER_EXPIRED_TIME = 7*24*60*60*1000;
    /**
     * 用户权限 普通
     */
    String USER_AUTHORITY_NORMAL = "user";
    /**
     * 用户权限 管理员
     */
    String USER_AUTHORITY_MANAGER = "manager";
    /**
     * 用户权限 房主
     */
    String USER_AUTHORITY_HOUSE = "house";
    /**
     * 给帖子点赞 需要重新计算帖子分数 这些帖子id 存储的key
     */
    String HOT_DISCUSS_KEY = "hotKey";
    /**
     * kafka处理wk的一个主题
     */
    String KAFKA_TOPIC_WK_GENERATE_IMAGE = "wkGenerateImage";
    /**
     * redis存储wk生成图片的表示
     */
    String REDIS_WK_GENERATE_IMAGE_SYMBOL = "wk_generate_image_";
}
